package com.designPattern.responsibilityChain;

/**
 * @Auther: zwg
 * @Date: 2019/2/20 14:27
 * @Description:处理奇数
 */
public class OddSupport extends Support {

    public OddSupport(String name) {
        super(name);
    }

    @Override
    protected boolean resolve(Integer trouble) {
        if(trouble%2==1){
            return true;
        }
        return false;
    }
}
